import './assets/main.css'

import {createApp} from 'vue'
import App from './App.vue'
import router from '@/router'
import {createPinia} from "pinia";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {createPersistedState} from "pinia-persistedstate-plugin";

const persist = createPersistedState();
const pinia = createPinia();
//pinia使用persist插件进行数据持久化
pinia.use(persist)
const app = createApp(App);
app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')